import request from '@/utils/request'

// 查询下单围栏列表优化列表
export function listFench(query) {
  return request({
    url: '/boss/fench/list',
    method: 'get',
    params: query
  })
}

// 查询下单围栏列表优化详细
export function getFench(fenchId) {
  return request({
    url: '/boss/fench/' + fenchId,
    method: 'get'
  })
}

// 新增下单围栏列表优化
export function addFench(data) {
  return request({
    url: '/boss/fench',
    method: 'post',
    data: data
  })
}

// 修改下单围栏列表优化
export function updateFench(data) {
  return request({
    url: '/boss/fench',
    method: 'put',
    data: data
  })
}

// 删除下单围栏列表优化
export function delFench(fenchId) {
  return request({
    url: '/boss/fench/' + fenchId,
    method: 'delete'
  })
}
